using System;
using System.Linq;
using Godot;

public static class Debug
{
    private static string JoinArgs(string tag, object[] args)
    {
        var strs = args.Select((x) => x == null ? "null" : x.ToString());
        return $"[{DateTime.Now:H:m:s:ff}]{tag}:\n\t\t{string.Join(",\t", strs)}\n";
    }
    public static void Log(params object[] args)
    {
        GD.Print(JoinArgs("LOG", args));
    }
    public static void Err(params object[] args)
    {
        GD.PrintErr(JoinArgs("ERR", args));
    }
}